Last chance! 50% off unlimited learning
Sale ends in
Subsetting method for mmkin objects
# S3 method for mmkin
[(x, i, j, ..., drop = FALSE)
An object of class mmkin
.
An mmkin object
Row index selecting the fits for specific models
Column index selecting the fits to specific datasets
Not used, only there to satisfy the generic method definition
If FALSE, the method always returns an mmkin object, otherwise either a list of mkinfit objects or a single mkinfit object.
Johannes Ranke
# Only use one core, to pass R CMD check --as-cran
fits <- mmkin(c("SFO", "FOMC"), list(B = FOCUS_2006_B, C = FOCUS_2006_C),
cores = 1, quiet = TRUE)
fits["FOMC", ]
fits[, "B"]
fits["SFO", "B"]
head(
# This extracts an mkinfit object with lots of components
fits[["FOMC", "B"]]
)
Run the code above in your browser using DataLab